/**
 * Copyright (c) 2019-2029, wwww.kiwipeach.cn (liuburu@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * https://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package cn.kiwipeach.blog.database.domain;

import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * 博客评论实体类
 *
 * @author kiwipeach
 * @since 1.0
 */
@Data
@ToString
public class BlogCommentVO implements Serializable {
    private static final long serialVersionUID = -3549664083005715895L;
    private String id;
    private String type;
    private String parentId;
    private String activeUserId;
    private String activeUserHeadUrl;
    private String passiveUserId;
    private String passiveUserHeadUrl;
    private String content;
    private Integer deleted;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private String createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private String updateTime;
    private Integer starCount;
    private Integer replyCount;
    private String activeNickName;
    private String passiveNickName;

    /**
     * 子评论或者回复消息
     */
    private List<BlogCommentVO> commentReplies;
}
